package com.edu.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.alibaba.fastjson2.annotation.JSONField;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class SliderEntity {
    //轮播图表
    private int sliderId;

    @JSONField(name = "imageUrl")
    private String imageUrl;

    @JSONField(name = "title")
    private String title;

    @JSONField(name = "description")
    private String description;

    @JSONField(name = "linkUrl")
    private String linkUrl;

    @JSONField(name = "displayOrder")
    private int displayOrder;

    @JSONField(name = "status")
    private String status;

    @Override
    public String toString() {
        return "SliderEntity{" +
                "sliderId=" + sliderId +
                ", imageUrl='" + imageUrl + '\'' +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", linkUrl='" + linkUrl + '\'' +
                ", displayOrder=" + displayOrder +
                ", status='" + status + '\'' +
                '}';
    }
}